package com.example.springboot.vo;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;


@Document(indexName = User.INDEX_NAME)
public class User implements Serializable {
	
	public static final String INDEX_NAME = "user_info";


	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@Id
	private String id;

	private String name;

	private String desc;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Override
	public String toString() {
		return "User{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", desc='" + desc + '\'' +
				'}';
	}
}
